<!DOCTYPE html><%@ page language="java"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!-- saved from url=(0041)http://v3.bootcss.com/examples/dashboard/ -->
<html lang="UTF-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="http://v3.bootcss.com/favicon.ico">

<title>首页</title>

<!-- Bootstrap core CSS -->
<link
	href="${pageContext.request.contextPath}/res/css/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">


<!-- Custom styles for this template -->
<link href="${pageContext.request.contextPath}/res/css/dashboard.css"
	rel="stylesheet">

<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script
	src="${pageContext.request.contextPath}/res/js/ie-emulation-modes-warning.js"></script>


</head>

<body>



	<div class="container-fluid">
		<div class="row">

			<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">


				<h2 class="sub-header">项目列表</h2>
				<div class="table-responsive">
					<table class="table table-striped">
						<thead>
							<tr>
								<th>#</th>
								<th>项目名称</th>
								<th>测试数据库URL</th>
								<th>生产数据库URL</th>
								<th>操作</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list }" var="m" varStatus="xh">
								<tr>
									<td>${xh.count}</td>
									<td>${m.name}</td>
									<td>${m.devUrl}</td>
									<td>${m.prodUrl}</td>
									<td><a
										href='${pageContext.request.contextPath}/dbcheck/edit?id=${m.id}'>编辑</a>
										<a
										href='${pageContext.request.contextPath}/dbcheck/delete?id=${m.id}'>删除</a></td>
									<th><a
										href='${pageContext.request.contextPath}/dbcheck/check?id=${m.id}'>检查</a>
										<a
										href='${pageContext.request.contextPath}/dbcheck/tableList?id=${m.id}'>代码</a></th>
								</tr>
							</c:forEach>
						</tbody>
					</table>

					<table style='width: 98%'>
						<tr>
							<td><div class="btn-group">
									<button class="btn btn-primary" href="#"
										onclick='add();return false;'>
										<i class="icon-plus icon-white"></i> 增加
									</button>

								</div></td>
						</tr>
					</table>
 
				</div>

			</div>
		</div>
	</div>

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="${pageContext.request.contextPath}/res/js/jquery.min.js"></script>
	<script>
		window.jQuery
				|| document
						.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')
	</script>
	<script
		src="${pageContext.request.contextPath}/res/css/bootstrap/js/bootstrap.min.js"></script>
	<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
	<script src="${pageContext.request.contextPath}/res/js/holder.min.js"></script>
	<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
	<script
		src="${pageContext.request.contextPath}/res/js/ie10-viewport-bug-workaround.js"></script>
	<script>
		function add() {

			window.location = '${pageContext.request.contextPath}/dbcheck/add';
		}
	</script>

</body>
</html>